cd /data/xframe/jar
REGISTER_APP_NAME=est-register.jar
GATEWAY_APP_NAME=xframe-gateway.jar
MODULE_CONFIG_APP=xframe-module-config-biz.jar
ADMIN_APP_NAME=xframe-admin.jar
IMPORT_APP_NAME=xframe-file-io.jar
REGISTER_LOG_FILE=/data/xframe/log/est-register.log
GATEWAY_APP_LOG_FILE=/data/xframe/log/xframe-gateway.log
ADMIN_LOG_FILE=/data/xframe/log/xframe-admin.log
MODULE_CONFIG_LOG_FILE=/data/xframe/log/xframe-module-config.log
IMPORT_APP_NAME_LOG_FILE=/data/xframe/log/xframe-file-io.log

ps -ef|grep xframe-file-io.jar | grep -v grep
pid=`ps -ef|grep $REGISTER_APP_NAM | grep -v grep | awk '{print $2}'`
kill -9 $pid
echo "$pid进程终止成功"

sleep 2

pid=`ps -ef|grep $GATEWAY_APP_NAME | grep -v grep | awk '{print $2}'`
kill -9 $pid
echo "$pid进程终止成功"

sleep 2

pid=`ps -ef|grep $ADMIN_APP_NAME | grep -v grep | awk '{print $2}'`
kill -9 $pid
echo "$pid进程终止成功"

sleep 2

pid=`ps -ef|grep $MODULE_CONFIG_APP | grep -v grep | awk '{print $2}'`
kill -9 $pid
echo "$pid进程终止成功"

sleep 2

pid=`ps -ef|grep xframe-file-io.jar | grep -v grep | awk '{print $2}'`
kill -9 $pid
echo "$pid进程终止成功"

sleep 2

echo "执行成功"
